package com.rexolar.openapi.constants;

/**
 * @ClassName ApiConstant
 * @Description:
 * @Author: zhusiyu
 * @CreateDate: 2024/12/11 19:47	//创建时间
 */
public class ApiConstant {

    /*API 地址*/
    public static final String AUTH_LOGIN = "/api/auth/login";
    public static final String AUTH_LOGOUT = "/api/auth/logout";
    public static final String AUTH_USER = "/api/auth/user";
    public static final String UPDATE_DEVICE_ATTRIBUTES = "/api/plugins/telemetry/{deviceId}/{scope}";
    public static final String UPDATE_DEVICE_TELEMETRY = "/api/plugins/telemetry/{entityType}/{entityId}/timeseries/ANY?scope=ANY";
    public static final String GET_DEVICE_ATTRIBUTES = "/api/plugins/telemetry/DEVICE/{deviceId}/values/attributes";
    public static final String GET_DEVICE_TIME_SERIES = "/api/plugins/telemetry/DEVICE/{deviceId}/values/timeseries";
    public static final String DYNAMIC_CREATE_DEVICE = "/api/device-with-credentials";
    public static final String GET_DEVICE_TIME_SERIES_LATEST = "/api/plugins/telemetry/DEVICE/{deviceId}/values/timeseries";
    public static final String DELETE_DEVICE = "/api/device/{deviceId}";
    public static final String GET_ASSET = "/api/asset/{spaceId}";
    public static final String GET_TENANT_DEVICES = "/api/tenant/devices";
    public static final String GET_TENANT_DEVICE_INFOS = "/api/tenant/deviceInfos";
    public static final String GET_DEVICE_PROFIELEINFOS = "/api/deviceProfileInfos";
    public static final String GET_DEVICE_CREDENTIALS = "/api/device/{deviceId}/credentials";
    public static final String ADD_DEVICE_PROFIELE = "/api/deviceProfile";
    public static final String DELETE_DEVICE_ATTRIBUTES = "/api/plugins/telemetry/DEVICE/{deviceId}/SERVER_SCOPE";
    public static final String DELETE_DEVICE_TELEMETRY = "/api/plugins/telemetry/DEVICE/{deviceId}/timeseries/delete";
    public static final String GET_ALARMS = "/api/alarms";
    public static final String GET_TENANT_ASSETS_INFO = "/api/tenant/assetInfos";
    public static final String GET_TENANT_USERS = "/api/tenant/{tenantId}/users";
    public static final String GET_CUSTOMER_USERS = "/api/customer/{customerId}/users";
    public static final String GET_RELATIONS_INFO = "/api/relations/info";
    public static final String API_RELATIONS = "/api/relation";
    public static final String GET_DEVICE_INFO = "/api/device/{deviceId}";
    public static final String GET_DEVICE_PROFILE_INFO = "/api/deviceProfile/{deviceProfileId}";
    public static final String GET_DEVICE_PROFILES = "/api/deviceProfiles";
    public static final String GET_USER_INFO = "/api/users/info";
    public static final String GET_USER_TOKEN = "/api/user/{userId}/token";
    public static final String CREATE_TENANT = "/api/tenant";
    public static final String CREATE_CUSTOMER = "/api/customer";
    public static final String CET_TENANTS = "/api/tenants";
    public static final String CET_CUSTOMERS = "/api/customers";
    public static final String GET_TENANT_DEFAULT_PROFILE = "/api/tenantProfileInfo/default";
    public static final String GET_ASSET_DEFAULT_PROFILE = "/api/tenantProfileInfo/default";
    public static final String CREATE_TENANT_USER = "/api/user?sendActivationMail=false";
    public static final String CHANGE_PASSWORD = "/api/auth/changePassword";
    public static final String GET_ASSETS = "/api/tenant/assets";
    public static final String ADD_ASSET = "/api/asset";
    public static final String ADD_CUSTOMER_DEVICE = "/api/customer/{customerId}/device/{deviceId}";

    /*SCOPE 类型*/
    public static final String SERVER_SCOPE =  "SERVER_SCOPE";
    public static final String SHARED_SCOPE =  "SHARED_SCOPE";

    /*网关指令的类型*/
    /*配网*/
    public static final String NETWORKING_JOIN = "NETWORKING_JOIN";
    /*离网*/
    public static final String NETWORKING_LEAVE = "NETWORKING_LEAVE";
}
